<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-11-04 14:04:58, compiled from ../app/web/template/customer/inputdata.htm */ ?>
<?php include('../app/data/template_c/layout/header.tpl.php'); ?>

<body>
	<div>
		<?php include('../app/data/template_c/layout/sidebar.tpl.php'); ?>
		<div class="stl_content">
			<table width="100%" border="0" cellspacing="0" cellpadding="4">
				<tr>
					<td height="20" class="content_title">导入客户数据</td>
				</tr>
				<tr>
					<td height="20" bgcolor="#E7E7E7"><a href="content.html"
						target="stl_content">首页</a> ＞ 客户资料管理</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<form enctype="multipart/form-data" method="POST"
					action="<?php  echo initPHP::url('customer|input|run');  ?>">
				<tr>
					<td height="30"><select name="select" size="1" id="select">
							<option value='null'>选择网站来源</option>
							<option value='yingxiao'>企业智能营销系统</option>
							<option value='pinpai'>企业智能品牌系统</option>
							<option value='fenxiao'>企业微信分销系统</option>
					</select>
					<a style="color:red;"><?php  echo isset($error['select'])?$error['select']:'';  ?></a>
					</td>
				</tr>
				<tr>
					<td height="30"><input name="fileField" type="file"
						id="fileField" /> <span class="STYLE2">*请上传格式为.xlsx的数据文件</span>
						<a style="color:red;"><?php  echo isset($error['fileField'])?$error['fileField']:'';  ?></a>
						</td>
						
				</tr>
				<tr>
					<td height="30"><input type="submit" name="button" id="button"
						value="导入" /></td>
				</tr>
				</form>
				<td height="30"><a class="download-excel"
					href="<?php  echo InitPHP::getAppPath('../../data/template/customer_template.xlsx');  ?>"
					target="_blank" class="dowload_exlce">批量上传模板（请使用Microsoft Office版）</a></td>
			</table>

			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="26"><span class="STYLE3">导入记录：</span></td>
				</tr>
			</table>
			<table width="100%" border="0" cellpadding="6" cellspacing="1"
				bgcolor="#CCCCCC">
				<tr>
					<td width="30" bgcolor="#66FF66">序号</td>
					<td bgcolor="#66FF66">数据来源</td>
					<td bgcolor="#66FF66">文件</td>
					<td bgcolor="#66FF66">客户数量</td>
					<td bgcolor="#66FF66">订单数量</td>
					<td bgcolor="#66FF66">导入时间</td>
				</tr>
			<?php  foreach($input_record_data['input_record_data'] as $key => $value){    ?>
				<tr>
					<td bgcolor="#FFFFFF"><?php  echo $value['id'];  ?></td>
					<td bgcolor="#FFFFFF"><?php  echo $value['source'];  ?></td>
					<td bgcolor="#FFFFFF"><?php  echo $value['file_name'];  ?></td>
					<td bgcolor="#FFFFFF"><?php  echo $value['customer_num'];  ?></td>
					<td bgcolor="#FFFFFF"><?php  echo $value['order_num'];  ?></td>
					<td bgcolor="#FFFFFF"><?php  echo $value['create_time'];  ?></td>
				</tr>
			<?php   }    ?>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
			    <td height="30">总共<strong><?php  echo $input_record_data['count'];  ?></strong>条记录，第
			   
			    <?php   for($i=1;$i<=$input_record_data['count']/PAGE_NUM+$input_record_data['count']%PAGE_NUM==0?0:1;$i++){    ?>
			    
			    <a href="<?php  $addurl['page']=$i; echo InitPHP::url('customer|input|run',$addurl);  ?>"><strong><?php   echo $i;    ?></strong></a>
			    <?php   if($i != ($input_record_data['count']/PAGE_NUM+$input_record_data['count']%PAGE_NUM==0?0:1)){    ?>
			    &nbsp;&nbsp;&nbsp;&nbsp;
			    <?php   } }    ?>
			     页</td>
			    <td width="150">&nbsp;</td>
			  </tr>
			</table>
		</div>















	</div>
</body>
</html>